<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class="ui-dialog" style="display: none;">
	<table cellspacing="0" cellpadding="0" class="fwin">
		<tbody>
			<tr>
				<td class="uie-tl"></td>
				<td class="uie-tc"></td>
				<td class="uie-tr"></td>
			</tr>
			<tr>
				<td class="uie-ml">&nbsp;&nbsp;</td>
				<td class="uie-mc">
					<div class="uie-flb"><span class="span1">提示信息</span><span class="span2"><a title="关闭" onclick="$(this).closest('.ui-dialog').data().close()" class="ui-dialog-close" href="javascript:;">关闭</a></span></div>
					<div class="uie-altw"><div class="ui-dialog-alert"><p>非 IE 浏览器请手动将本站设为首页</p></div></div>
					<p class="uie-pns"><button value="true" class="ui-dialog-submit" onclick="$(this).closest('.ui-dialog').data().close()"><strong>确定</strong></button></p>
				</td>
				<td class="uie-mr"></td>
			</tr>
			<tr>
				<td class="uie-bl"></td>
				<td class="uie-bc"></td>
				<td class="uie-br"></td>
			</tr>
		</tbody>
	</table>
</div>
<script type="text/javascript">
(function(){
	$dialog = $(".ui-dialog").remove();
	
	window.showDialog = function(msg){
		var $clone = $dialog.clone().appendTo("body").show();
		$clone.find(".ui-dialog-alert").text(msg);
		
		$clone.data().close = function(){
			$(".ui-cover").data().hide();
			$clone.remove();
		};
		
		var reset = function(){
			$clone.css({"position": "fixed", "left":$(window).width()/2 - $clone.width()/2, "top":$(window).height()/2 - $clone.height()/2});
		};
		reset();
		
		$(".ui-cover").data().show({elem:$clone, resize:reset});
	};
})();
</script>